package org.batatasframework.chart.columns;

public class ColumnAxisStandrand extends AbstractValueColumn<Object> implements ChartColumnAxis{
	private final int indexOf;

	public ColumnAxisStandrand(String name, int indexOf) {
		super(name);
		this.indexOf = indexOf;
	}

	@Override
	protected Object internalParseValue(Object[] row) {
		if(indexOf < row.length) return row[indexOf];
		return null;
	}
}
